from flask import Flask
from flask_script import Manager,Server

from job import create_app
from setting import config


app = create_app(config)

manager = Manager(app=app)
manager.add_command("server",Server())


if __name__=="__main__":
    manager.run(default_command="server")
